
package com.shangsi.feignservice.fallback;

import com.shangsi.feignservice.fallback.PaymentFeignFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 此种fallback无法处理feign调用过程中的异常,只是当出发了降级负责之后的返回逻辑处理
 * @author dzd
 * @date 2021-12-18
 */
//@FeignClient(value = "provider-payment",fallback = PaymentFeignFallbackService.class)
public interface PaymentFeignService {
    @RequestMapping("payment/{id}")
    String getPayment(@PathVariable("id") Integer id);
}
